﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="EDP.Application.Web.Info.Log.Operate._default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <script type="text/javascript">
        document.onkeydown = function (e) {
            if (!e) e = window.event;
            if ((e.keyCode || e.which) == 13) {
                F.f_disable('grid_List_ctl00_btn_query');
                __doPostBack('grid_List$ctl00$btn_query', '');
            }
        }
    </script>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="grid_List" runat="server" />
        <f:Grid ID="grid_List" runat="server" Title="操作日志" Margin="10" EnableCheckBoxSelect="false"
            DataKeyNames="ID" SortField="CreateTime" SortDirection="desc" OnSort="grid_List_Sort" OnPageIndexChange="grid_List_PageIndexChange" EnableRowDoubleClickEvent="true" OnRowDoubleClick="grid_List_RowDoubleClick">
            <Toolbars>
                <f:Toolbar runat="server" ToolbarAlign="Left" QueryToolbar="true">
                    <Items>
                        <f:DatePicker ID="date_start" runat="server" Margin="0 0 0 5" Width="120" QueryName="CreateTimeStart" QueryOperator="ge" EnableEdit="false" EmptyText="开始日期" />
                        <f:DatePicker ID="date_end" runat="server" Margin="0 0 0 2" Width="130" QueryName="CreateTimeEnd" QueryOperator="lt" EnableEdit="false" EmptyText="截止日期" Label="至" LabelWidth="10" />
                        <f:DropDownList ID="ddl_type" runat="server" Margin="0 0 0 10" Width="140" QueryName="TypeId" />
                        <f:TextBox ID="TextBox1" runat="server" Margin="0 0 0 10" Width="150" QueryName="CreateUserKeyword" QueryOperator="like" EmptyText="操作人账号/操作人" />
                        <f:TextBox ID="TextBox2" runat="server" Margin="0 0 0 10" Width="300" QueryName="ActionObjectKeyValue" QueryOperator="eq" EmptyText="操作对象主键值" />
                        <f:Button ID="btn_query" runat="server" Text=" 查 询 " Icon="SystemSearch" Margin="0 0 0 10" OnClick="QueryClick" EnablePermission="false" />
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Columns>
                <f:BoundField DataField="FunctionName" Width="150" HeaderText="对应功能" />
                <f:BoundField DataField="TypeName" Width="120" SortField="TypeId" HeaderText="操作类型" />
                <f:BoundField DataField="ActionObject" ExpandUnusedSpace="true"  HeaderText="操作对象" />
                <f:BoundField DataField="ActionObjectKeyValue" Width="280" HeaderText="操作对象主键值" />
                <f:BoundField DataField="ActionName" Width="100" SortField="ActionId" HeaderText="操作行为" />
                <f:CheckBoxField DataField="IsSuccess" Width="75" HeaderText="操作成功" TextAlign="center" />
                <f:BoundField DataField="ActionUesTimes" Width="80" HeaderText="用时(毫秒)" DataFormatString="{0:#,##0}" TextAlign="right" />
                <f:BoundField DataField="ClientIPAddress" Width="100" HeaderText="客户端IP" />
                <f:BoundField DataField="ClientName" Width="150" HeaderText="客户端名称" />
                <f:BoundField DataField="CreateUserAccount" Width="100" HeaderText="操作人账号" />
                <f:BoundField DataField="CreateUserName" Width="100" HeaderText="操作人" />
                <f:BoundField DataField="CreateTime" Width="140" HeaderText="操作时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" TextAlign="center" />
            </Columns>
        </f:Grid>
        <f:Window ID="win_view" runat="server" />
    </form>
</body>
</html>
